package com.jindu.producer.finance.model;

import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Objects;

@Entity
@Table(name = "f_hightech", schema = "jinduDB", catalog = "")
public class FHightechEntity implements Serializable {
    @Id
    private String id;
    private String userId;
    private Integer orgId;
    private String name;
    private Timestamp registTime;
    private Integer year;
    private String address;
    private String business;
    private String product;
    private Integer totalPeople;
    private Integer techPeople;
    private Integer property1;
    private Integer property2;
    private Integer property3;
    private Integer property4;
    private Integer property5;
    private Integer type;
    private String createId;
    private Timestamp createTime;
    private String modifyId;
    private Timestamp modifyTime;
    private String description;
    private String legalResult;

    @Id
    @Column(name = "id")
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Basic
    @Column(name = "user_id")
    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    @Basic
    @Column(name = "org_id")
    public Integer getOrgId() {
        return orgId;
    }

    public void setOrgId(Integer orgId) {
        this.orgId = orgId;
    }

    @Basic
    @Column(name = "name")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Basic
    @Column(name = "regist_time")
    public Timestamp getRegistTime() {
        return registTime;
    }

    public void setRegistTime(Timestamp registTime) {
        this.registTime = registTime;
    }

    @Basic
    @Column(name = "year")
    public Integer getYear() {
        return year;
    }

    public void setYear(Integer year) {
        this.year = year;
    }

    @Basic
    @Column(name = "address")
    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    @Basic
    @Column(name = "business")
    public String getBusiness() {
        return business;
    }

    public void setBusiness(String business) {
        this.business = business;
    }

    @Basic
    @Column(name = "product")
    public String getProduct() {
        return product;
    }

    public void setProduct(String product) {
        this.product = product;
    }

    @Basic
    @Column(name = "total_people")
    public Integer getTotalPeople() {
        return totalPeople;
    }

    public void setTotalPeople(Integer totalPeople) {
        this.totalPeople = totalPeople;
    }

    @Basic
    @Column(name = "tech_people")
    public Integer getTechPeople() {
        return techPeople;
    }

    public void setTechPeople(Integer techPeople) {
        this.techPeople = techPeople;
    }

    @Basic
    @Column(name = "property1")
    public Integer getProperty1() {
        return property1;
    }

    public void setProperty1(Integer property1) {
        this.property1 = property1;
    }

    @Basic
    @Column(name = "property2")
    public Integer getProperty2() {
        return property2;
    }

    public void setProperty2(Integer property2) {
        this.property2 = property2;
    }

    @Basic
    @Column(name = "property3")
    public Integer getProperty3() {
        return property3;
    }

    public void setProperty3(Integer property3) {
        this.property3 = property3;
    }

    @Basic
    @Column(name = "property4")
    public Integer getProperty4() {
        return property4;
    }

    public void setProperty4(Integer property4) {
        this.property4 = property4;
    }

    @Basic
    @Column(name = "property5")
    public Integer getProperty5() {
        return property5;
    }

    public void setProperty5(Integer property5) {
        this.property5 = property5;
    }

    @Basic
    @Column(name = "type")
    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    @Basic
    @Column(name = "create_id")
    public String getCreateId() {
        return createId;
    }

    public void setCreateId(String createId) {
        this.createId = createId;
    }

    @Basic
    @Column(name = "create_time")
    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    @Basic
    @Column(name = "modify_id")
    public String getModifyId() {
        return modifyId;
    }

    public void setModifyId(String modifyId) {
        this.modifyId = modifyId;
    }

    @Basic
    @Column(name = "modify_time")
    public Timestamp getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Timestamp modifyTime) {
        this.modifyTime = modifyTime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        FHightechEntity that = (FHightechEntity) o;
        return Objects.equals(id, that.id) &&
                Objects.equals(userId, that.userId) &&
                Objects.equals(orgId, that.orgId) &&
                Objects.equals(name, that.name) &&
                Objects.equals(registTime, that.registTime) &&
                Objects.equals(year, that.year) &&
                Objects.equals(address, that.address) &&
                Objects.equals(business, that.business) &&
                Objects.equals(product, that.product) &&
                Objects.equals(totalPeople, that.totalPeople) &&
                Objects.equals(techPeople, that.techPeople) &&
                Objects.equals(property1, that.property1) &&
                Objects.equals(property2, that.property2) &&
                Objects.equals(property3, that.property3) &&
                Objects.equals(property4, that.property4) &&
                Objects.equals(property5, that.property5) &&
                Objects.equals(type, that.type) &&
                Objects.equals(createId, that.createId) &&
                Objects.equals(createTime, that.createTime) &&
                Objects.equals(modifyId, that.modifyId) &&
                Objects.equals(modifyTime, that.modifyTime);
    }

    @Override
    public int hashCode() {

        return Objects.hash(id, userId, orgId, name, registTime, year, address, business, product, totalPeople, techPeople, property1, property2, property3, property4, property5, type, createId, createTime, modifyId, modifyTime);
    }

    @Basic
    @Column(name = "description")
    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Basic
    @Column(name = "legal_result")
    public String getLegalResult() {
        return legalResult;
    }

    public void setLegalResult(String legalResult) {
        this.legalResult = legalResult;
    }
}
